********************************************************************************************
**** TREATMENT DIFFERENCES WITH CONTROLS
**** This file generates output tables for group comparison at baseline.
**** Version: 10/03/2014
********************************************************************************************	
			
			
********************************************************************************************
**** FIRST STAGE
********************************************************************************************
		
	est clear
	
		reg mother_t mother welfare_center if round == 2012, cluster(id_mun)
		est sto a

		reg mother_t mother welfare_center sfa_2012 if round == 2012, cluster(id_mun)
		est sto b
		
		reg mother_t mother welfare_center sfa_2012 $controls if round == 2012, cluster(id_mun)
		est sto c

		reg cct_treat_hh mother sfa_2012 welfare_center if round == 2012, cluster(id_mun)
		est sto d

		reg cct_treat_hh mother sfa_2012 welfare_center $controls if round == 2012, cluster(id_mun)
		est sto e

		reg cct_treat_hh mother sfa_2011 welfare_center if round == 2012, cluster(id_mun)
		est sto f

		reg cct_treat_hh mother sfa_2011 welfare_center $controls if round == 2012, cluster(id_mun)
		est sto g

		reg cct_treat_hh mother sfa_2010 welfare_center if round == 2012, cluster(id_mun)
		est sto h

		reg cct_treat_hh mother sfa_2010 welfare_center $controls if round == 2012, cluster(id_mun)
		est sto i
		
		reg sfa_2012 mother welfare_center if round == 2012, cluster(id_mun)
		est sto l

		reg sfa_2012 mother welfare_center $controls if round == 2012, cluster(id_mun)
		est sto m

			esttab * using "Outputs/First stage IV.tex", f replace compress nonumb nomtitles label nodepvars gaps r2 ///
			keep(mother sfa_2012 sfa_2011 sfa_2010 welfare_center) ///
			order(mother sfa_2012 sfa_2011 sfa_2010 welfare_center) b(3) se(3) ///
			star(* 0.1 ** 0.05 *** 0.01) collabels("OLS" "OLS" "OLS" "OLS" "OLS" "OLS" "OLS" "OLS" "OLS" "OLS" "OLS")
